{% extends "::base.html.twig" %}
{% block title %}{{ parent() }} - Admin{% endblock %}
{% block titre %}{{ parent() }} Liste des types de groupe{% endblock %}
{% block body %}
<div class="col_6">
    {% if entities|length > 0 %}
        <table class="records_list">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
            {% for entity in entities %}
                <tr>
                    <td>{{ entity.name }}</td>
                    <td>
                        <a href="{{ path('page_show', { 'id': entity.id }) }}" class="btn medium blue"><span class="icon small white" data-icon="4"></span> Montrer</a>&nbsp;
                        <a href="{{ path('page_edit', { 'id': entity.id }) }}"  class="btn medium blue"><span class="icon small white" data-icon="7"></span> Modifier</a>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table><br /><br />
    {% else %}
        Il n'y a aucun type de groupe enregistré.<br /><br />
    {% endif %}    
    <div>
        <a href="{{ path('ProjetAAdminBundle_homepage') }}" class="btn medium blue"><span class="icon small white" data-icon=":"></span> Retour</a>
        <a href="{{ path('page_new') }}" class="btn medium blue">
            <span class="icon small white" data-icon="."></span> Nouveau type
        </a>
    </div>
</div>
{% endblock body %}